<?php

$obj = array('a' => 0);

/*
class Foo
{
    public $a;

    public function __construct()
    {
        $this->a = 0;
    }
}

$obj = new Foo();
*/

for ($i = 0; $i <= 1000000; $i++) {
    ++$obj['a'];
    //++$obj->a;
}

echo $obj['a'], "\n";
//echo $obj->a, "\n";
